import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/yonghufuwuyinsixieyi',
    name: 'yonghufuwuyinsixieyi',
    component: () => import('@/views/user/agreement'),
    meta: {
      title: '用户使用和隐私协议'
    }
  },
  {
    path: '/individualBusiness',
    name: 'individualBusiness',
    component: () => import('@/views/IndividualBusiness/IndividualBusiness'),
    meta: {
      title: '个人工商户'
    }
  },
  {
    path: '/industrialParkDetail/:laborCompanyId/:industry/:isAdd',
    name: 'industrialParkDetail',
    component: () => import('@/views/IndividualBusiness/IndustrialParkDetail'),
    meta: {
      title: '确认信息'
    }
  },
  {
    path: '/addIndividualBusiness/:laborCompanyId/:industry/:isAdd',
    name: 'addIndividualBusiness',
    component: () => import('@/views/IndividualBusiness/AddIndividualBusiness'),
    meta: {
      title: '填写信息'
    }
  },
  {
    path: '/individualBusinessDetail/:item',
    name: 'individualBusinessDetail',
    component: () => import('@/views/IndividualBusiness/IndividualBusinessDetail'),
    meta: {
      title: '个人工商户'
    }
  },
  {
    path: '/sign',
    name: 'sign',
    component: () => import('@/views/IndividualBusiness/sign'),
    meta: {
      title: '签名'
    }
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
